import { request } from '@/utils'

export default {
  // 获取用户信息
  getUserInfo: () => request.get(`/user/getUserInfo`),
  // 获取用户权限
  getUserPermissions: () => request.get(`/user/getPermissions`),
  // 更新头像
  updateAvatar: (avatar_url) => request.put(`/user/updateAvatar?avatar_url=${avatar_url}`),
  // 更新个人信息
  updatePassword: (data) => request.put('/user/updatePassword',data),
}
